package com.school.admin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 操作日志
 * </p>
 *
 * @author sunpx
 * @since 2022-03-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "SysOperateLog对象", description = "操作日志")
public class SysOperateLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @JsonSerialize(using = ToStringSerializer.class)
    private String id;

    @ApiModelProperty(value = "类型 日志类型。1：添加2：编辑 3：删除 4：导入5:导出6：用户角色变更7：角色权限变更")
    private Integer logType;

    @ApiModelProperty(value = "日志内容，要详细。例如：人员XX在哪个模块进行了XX操作")
    private String logContent;

    @ApiModelProperty(value = "操作入姓名")
    private String operatorName;

    @ApiModelProperty(value = "操作入id")
    private String operatorId;

    @ApiModelProperty(value = "操作时间")
    private Date createtime;

    @ApiModelProperty(value = "ip")
    private String ip;


}
